package com.haopt.clock.controller;

import com.haopt.clock.dto.ResultDTO;
import com.haopt.clock.service.IntegralService;
import com.haopt.clock.service.RecordService;
import com.haopt.clock.vo.ReqPageVO;
import com.haopt.clock.vo.ResInteralDetailVO;
import com.haopt.clock.vo.ResPageVO;
import com.haopt.clock.vo.ResRecordDetailVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @author haopt
 * @version 1.0
 * @ClassName IntegralController
 * @Description TODO
 * @date 2021/3/22 13:35
 */
@RestController
@RequestMapping("/record")
public class RecordController {

    @Autowired
    private RecordService recordService;

    @GetMapping("list")
    public ResultDTO<List<ResRecordDetailVO>> list(@RequestParam("userId")String userId) {
        return recordService.list(userId);
    }
}
